package com.xingli.jingdongshop.dao;

import com.xingli.jingdongshop.beans.RedeemStatusEnums;
import com.xingli.jingdongshop.entity.Redeem;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RedeemDao extends JpaRepository<Redeem,Integer> {
    List<Redeem> findByGoodsIdAndStatus(int goodsId, RedeemStatusEnums status);
    List<Redeem> findByRedeemCodeIn(String[] redeemList);
}
